package se.webbzon.boltzmann.game.object.item;

import se.webbzon.boltzmann.environment.AbstractEnvironment;
import se.webbzon.boltzmann.environment.EnvironmentInflator;
import se.webbzon.oschi01.worldeditor.WorldObjectDeflation;
import se.webbzon.oschi01.worldobject.WorldObject;

public class GameItemInflator extends EnvironmentInflator {

	/*============================================================
	Constructors
	============================================================*/
	
	/** Creates a new game item inflator. **/
	public GameItemInflator(AbstractEnvironment env) {
		super(env, GameItem.worldObjectName);
	}
	
	/*============================================================
	Public Methods
	============================================================*/

	@Override public WorldObject makeWorldObject(WorldObjectDeflation deflation) {
		return ((GameItemDeflation) deflation).makeGameItem(getEnvironment());
	}

	@Override public WorldObjectDeflation makeDeflation(int deflationProperties,
			WorldObject[] dependencies) {
		return new GameItemDeflation(deflationProperties);
	}

}
